﻿/*
 * Subject：API接口统一返回值（可以扩展包含分页）
 * Date：2023/2/1
 * Content：简单的返回值封装
 * 
 * **/
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Max.PH6_2006A.LowCode.DTO
{
    public class ApiResultReturnDto
    {
        public ApiResultReturnCode Code { get; set; } = ApiResultReturnCode.Success;
        public string Message { get; set; } = ApiResultReturnCode.Success.ToString();
        public dynamic? Data { get; set; }
    }

    public enum ApiResultReturnCode
    {
        Success = 200,
        Failed = 500,
    }
}
